#include "xmldocument.h"

XMLDocument::XMLDocument()
{}


bool XMLDocument::LoadXML(string filePath){
    ifstream file (filePath, ifstream::in | ifstream::out);
    SkipFirstLine(&file);

    return true;
}

void XMLDocument::LoadXMLelement()
{

}


void XMLDocument::SkipFirstLine(ifstream *file){
    char  firstline[500];
    file->getline(firstline, 1000);
}

void XMLDocument::LoadRootElement(ifstream *file){
    char c;
    bool error = false;
    while(!file->eof() && !error){
        *file>>c;
        if( c== '<'){
            m_Root = new XMLElement(file);
        }
    }
}
